# coding=utf-8
from middlewares.middleware import Middleware


class ProxyMicroleavesMiddleware(Middleware):
    def __init__(self):
        super(ProxyMicroleavesMiddleware, self).__init__(self._inner_process)

    def _inner_process(self, request):
        proxy = {"http": "http://jifengshao88:pt-admin@A121@microleaves.com"}
        request.proxies = proxy
